﻿using System;

namespace Snake.Gameplay.EffectComponents
{
    [Serializable]
    public class AssetTags : GameplayEffectComponent
    {
        public string added;
        public string removed;

        public string[] CombinedTags => new[] { added };

        public override void Apply(GameplayEffectSpec spec)
        {
            spec.Owner.BroadcastEvent(new GameplayTriggerTagEvent
            {
                Tag = added
            });
        }
    }
}